import Vue from 'vue';
import VueRouter from 'vue-router';

Vue.use(VueRouter);

const routes=[
    {path:"/", redirect:"/home"},
    {path: "/home", component: () => import('@/views/home')},
    {path: "/personalSelection", component: () => import('@/views/personalSelection/index')},
    {path: "/toDoList", component: () => import('@/views/toDoList/index')},
    {path: "/myTodoAndDone", component: () => import('@/views/myTodoAndDone/index')},
    {path: "/doneList", component: () => import('@/views/doneList/index')},


    {path: "/departmentDetail", component: () => import('@/views/personalSelection/departmentDetail')},
    {path: "/selectHander", component: () => import('@/views/toDoList/selectHander')},
]

const router=new VueRouter({
    mode:'history',
    routes
})
export default router